package bookshelf.client;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.VerticalPanel;

public class TopPanel extends Composite{
	
	public TopPanel(){
	    HorizontalPanel outer = new HorizontalPanel();
	    VerticalPanel inner = new VerticalPanel();

	    outer.setHorizontalAlignment(HorizontalPanel.ALIGN_RIGHT);
	    inner.setHorizontalAlignment(HorizontalPanel.ALIGN_RIGHT);

	    HorizontalPanel links = new HorizontalPanel();
	    links.setSpacing(4);
	    links.add(new HTML("<b>test</b>"));
	    links.add(new HTML("<b>test2</b>"));
	    
	    outer.add(inner);
	    inner.add(new HTML("<b>Welcome back, foo@example.com</b>"));
	    inner.add(links);

	    initWidget(outer);
	    setStyleName("mail-TopPanel");
	    links.setStyleName("mail-TopPanelLinks");
	}

}
